package com.serlet.wakyde;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Description: TODO
 * @author: wakyde
 * @date: 2022年05月09日 10:22
 */
public class HelloServlet extends HttpServlet {

    protected void doGet(HttpServletRequest req, HttpServletResponse resp){
        System.out.println("Hello");
        ServletContext context = this.getServletContext();
        String username = "wakyde";
        context.setAttribute("username", username);
    }
}
